//
//  NSString+Format.h
//  AFNetworking
//
//  Created by abc on 2019/1/14.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Format)

+ (NSString *)stringForPayerTime:(CGFloat)time;

+ (NSString *)middleTruncatingStringWithString:(NSString *)string
                                  suffixString:(NSString *)suffix
                                    stringFont:(UIFont *)font
                                      maxWidth:(CGFloat)maxWidth;

- (NSString *)firstWord;

- (NSString *)compatibleSubStringToIndex:(NSUInteger)index;

- (NSUInteger)lineNumberOfFont:(UIFont *)font size:(CGSize)size;

- (NSUInteger)lineNumberOfFontNumber:(CGFloat)fontNumber size:(CGSize)size;

- (NSString *)formattedAZPriceString;

@end

NS_ASSUME_NONNULL_END
